﻿namespace 变量类型转换
{
    internal class Program
    {
        static void Main(string[] args)
        {
            float height = 0.86f;
            height += 1;

            float f = 3;
            string s = "我的身高是：" + height;

            int count = 1;
            count += count + (int)f;

            // 输入一个数字，打印它乘2的结果
            //string input = Console.ReadLine();
            // int n = Convert.ToInt32(input);
            //int n = int.Parse(input);

            //string ss = "你好";
            //int a = 1;
            //ss = ss + a + 2 + 3;
            //Console.WriteLine(ss);

            // 内插字符串--$的妙用
            string game = "老头环";
            float score = 9.5f;
            Console.WriteLine("游戏{0}在某网站的评分为{1}分", game, score);
            Console.WriteLine($"游戏\n{game}在某网站的评分为\n{score}分");
            Console.WriteLine($"游戏\t{game}\t在某网站的评分为\t{score}分");
        }
    }
}